package com.he.hsdyc.designmodule.factory.Abstract;

public class Test {

    public static void main(String[] args) {
//        Provider provider = new SendMailFactory();
//        Sender sender = provider.produce();
//        sender.Send();

        Provider provider = new SendQqFactory();//新增QqSender,只需更改本条实现即可，符合开闭原则
        Sender sender = provider.produce();
        sender.Send();
    }
}
